package com.yj.web.service;

import com.yj.web.dao.po.admin.CheckSuggestion;
import com.yj.web.dao.po.admin.FundraisingProject;
import com.yj.web.dao.po.admin.InvestRecord;
import com.yj.web.dao.po.admin.RepayPlan;

import java.util.List;

/**
 * Created by yanlinyang on 2017/7/13.
 */
public interface FundraisingProjectService {
    public List<FundraisingProject> listFundraisingProject(List<Integer> statuses, String borrower_name, String borrower_phone, String startTime, String endTime, int page, int size) throws Exception;
    public int countFundraisingProject(List<Integer> statuses, String borrower_name, String borrower_phone, String startTime, String endTime);
    public FundraisingProject findFundraisingProjectById(String id);
    public List<InvestRecord> findInvestRecordByProjectId(String projectId, int page, int size);
    public List<RepayPlan> findRepayPlanByProjectId(String projectId, int page, int size);

    public boolean terminateProject(String id);
    public boolean confirmLoan(String id);
    public boolean splitByAccount(String id, int period);
    public int countRepayPlanByProjectId(String projectId);
    public int countInvestRecordByProjectId(String projectId);

    public int checkProject(CheckSuggestion suggestion);
    public boolean hideDisplayProject(String id, int hide_flag);

    public boolean remindRepay(String projectId, String phone);
//    public boolean displayProject(String id);
}
